﻿{layout:default} {class:Shop.Admin.Config.License}
<lbhead>
    <title><%=Tag("账户设置")%>-<%=site.title%></title>
</lbhead>
<lbfile>
    <style>
        .bottom{height: 0;overflow: hidden;display: none;}
    </style>
</lbfile>
<lbpath>
    <div class="tools">
        <ul>
            <%if (PageReturnMsg == ""){%>
            <li class="submit"><a href="javascript:void(0);" onclick="SaveObj();"><b></b><span><%=Tag("保存")%></span></a></li>
            <%}%>
            <li class="name"><span id="navIgation">
                <%=Tag("当前位置")%>：<a href="<%=site.AdminPath %>/Ajax/ajax_admin.aspx?__Action=MenuJump&pid=0"><%=Tag("管理首页")%></a>
                >
                <%=Tag("账户设置") %></span></li>
        </ul>
    </div>
</lbpath>
<lbbody>
    <table class="table">
        <tbody>
            <tr>
                <th>
                    Lebi<%=Tag("帐号")%>：
                </th>
                <td>
                    <input type="text" class="input" id="LicenseUserName" name="LicenseUserName" shop="true"
                        style="width: 200px;" value="<%=model.LicenseUserName %>" />
                    <em></em>
                </td>
            </tr>
            <tr>
                <th>
                    Lebi<%=Tag("密码")%>：
                </th>
                <td>
                    <input type="password" class="input" id="LicensePWD" name="LicensePWD" shop="true"
                        style="width: 200px;" value="<%=password %>" />
                    <em></em>
                </td>
            </tr>
            <%if (model.LicenseDomain != "")
              { %>
            <tr>
                <th>
                    <%=Tag("网站域名")%>：
                </th>
                <td>
                    <%=model.LicenseDomain%>
                </td>
            </tr>
            <%} %>
        </tbody>
    </table>
    <%
    if (!Shop.LebiAPI.Service.Instanse.Check("managelicenese")){
    %>
    <div class="faq_main">
        <p class="faq_title"><%=Tag("帮助")%>：</p>
        <%=Tag("输入您的Lebi帐号、Lebi密码和网站域名，可以自动获得您已经购买的授权。")%></br>
        <%=Tag("点此查看Lebi商业授权")%><a href="http://www.lebi.cn/license/" target="_blank">http://www.lebi.cn/license/</a>
    </div>
    <%}%>
    <script type="text/javascript">
        function SaveObj() {
            var postData = GetFormJsonData("shop");
            var url="<%=site.AdminPath %>/ajax/ajax_service.aspx?__Action=Licence_Set";
            RequestAjax(url,postData,function(res){MsgBox(1, "<%=Tag("操作成功")%>", "?")});
        }
    </script>
</lbbody>
<lbbottom>
    <div class="bottom" id="body_bottom">
    <input type="hidden" id="pwd" runat="server" />
    </div>
</lbbottom>
